package org.wlci.captur.domain.core;

public class Entity {

	private long id;
	
	protected Entity() { }
	
	protected Entity( long id ) {
		this.id = id;
	}
	
	public long getId() {
		return id;
	}
	
	public boolean equals( Object anEntity ) {
		return (anEntity instanceof Entity) && ( (Entity)anEntity ).id == id;
	}

	public int hashcode() {
		return (int)( id ^ ( id >>> 32 ) );
	}
	
}
